<template>
  <div class="alert">
    <div class="main">
      <img src="../images/xxx.png" alt />
      <p>{{msg}}</p>
    </div>
  </div>
</template>
<script>
export default {
  props: ["msg"],
  data() {
    return {};
  }
};
</script>
<style lang="scss" scoped>
.alert {
  .main {
    position: fixed;
    top: 3rem;
    right: 0;
    left: 0;
    z-index: 10000;
    margin: auto;
    width: 50%;
    background-color: rgba($color: #000000, $alpha: 0.6);
    border-radius: 0.3rem;
    padding: 0.2rem;
    img {
      width: 0.8rem;
      margin: auto;
      margin-top: 0.3rem;
      margin-bottom: 0.3rem;
    }
    p {
      text-align: center;
      color: #fff;
      font-size: 0.3rem;
      line-height: 0.5rem;
    }
  }
}
</style>